package com.lagou;

import com.lagou.boot.SpringContextHolder;
import com.lagou.service.UserServiceImpl;
import org.springframework.boot.SpringApplication;
        import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class WxxApplication {
    public static String ip="127.0.0.1";
    public static int port=9911;
    public static void main(String[] args) throws Exception {
        SpringApplication.run(WxxApplication.class, args);
        UserServiceImpl.startServer(ip, port);
    }
    @Bean
    public SpringContextHolder springContextHolder(){
        return new SpringContextHolder();
    }
}
